package com.woniuxy.life.core.api;

public enum ResultCode implements IErrorCode{

    SUCCESS(0L,"success"),
    FAILED(500L,"服务器内部错误"),
    VALIDATE_FAILED(400L,"Invalid input(无效的输入)"),
    VALIDATE_METHOD_FAILED(405L,"请求的方法被禁止222"),
    METHOD_ARGUMENT_NOT_VALID(10000L,"参数校验失败");

    private Long code;

    private String message;

    private ResultCode(Long code,String message){
        this.code = code;
        this.message = message;
    }

    @Override
    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
